<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>转换</title>
    <style>
        a {
            height: 100px;
            width: 100px;
            background-color: #333;
            /*行内转换*/
            display: block;
        }

        div {
            height: 300px;
            width: 100px;
            display: inline;

        }
        .inline-block {
            display: inline-block;
            width: 100px;
            height: 100px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
<a href="#">超链接</a>
<div>一个div</div>

<div class="inline-block">行内块</div>
<div class="inline-block">行内块</div>
<div class="inline-block">行内块</div>
</body>
</html>